package com.drug.wms.domain;

import com.drug.common.annotation.Excel;
import com.drug.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 文件对象 bus_file
 *
 * @author ruoyi
 * @date 2021-11-12
 */
public class BusFile extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private String id;

    /**
     * 业务id
     */
    @Excel(name = "业务id")
    private String busId;

    /**
     * 文件类型
     */
    @Excel(name = "文件类型")
    private String type;

    /**
     * 文件名
     */
    @Excel(name = "文件名")
    private String name;

    /**
     * 文件路径
     */
    @Excel(name = "文件路径")
    private String path;

    /**
     * 本地路径
     */
    @Excel(name = "本地路径")
    private String localPath;

    /**
     * 数据状态
     */
    @Excel(name = "数据状态")
    private String validityCode;

    /**
     * 部门ID
     */
    @Excel(name = "部门ID")
    private Long deptId;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setBusId(String busId) {
        this.busId = busId;
    }

    public String getBusId() {
        return busId;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getPath() {
        return path;
    }

    public void setLocalPath(String localPath) {
        this.localPath = localPath;
    }

    public String getLocalPath() {
        return localPath;
    }

    public void setValidityCode(String validityCode) {
        this.validityCode = validityCode;
    }

    public String getValidityCode() {
        return validityCode;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("busId", getBusId())
                .append("type", getType())
                .append("name", getName())
                .append("path", getPath())
                .append("localPath", getLocalPath())
                .append("validityCode", getValidityCode())
                .append("deptId", getDeptId())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
